package com.ficus.road.maintain.file;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiawen yang
 * @date 2022/6/20 下午3:28
 */
@Configuration
@ConfigurationProperties(prefix = "oss")
@Data
public class OSSClientConfig extends FileClientConfig {

    public static final String urlPrefix = "aliyuncs.com/";
    //文件最大上传大小
    public static long FILE_MAX_SIZE = 1024 * 1024 * 10l;
    //图片过期时间 1年
    public static long FILE_EXPIRATION_TIME = 1000 * 3600 * 24 * 365;

}
